package src.main.java.com.pms.gui.dialog.appointment;

import javax.swing.*;

public class VaccineAppointmentDialog extends AppointmentDialog {
    
    public VaccineAppointmentDialog(JFrame parent) {
        super(parent, "疫苗预约", "疫苗");
    }

    @Override
    protected boolean makeAppointment(int petId) throws Exception {
        try {
            appointmentService.addVaccineAppointmentDialogByGUI(petId);
            return true;
        } catch (Exception e) {
            return false;
        }
    }
}
